#include"myfile.h"
#include<string.h>

int main() {
    MyFile *file = MyFopen("log.txt", "w");
    if (file == NULL) {
        perror("Failed to open file");
        return 1;
    }

    char str[] = "hello fwx\n";
    MyFwrite(file, str, strlen(str));

    MyFclose(file);
    return 0;
}
